package cn.wolfcode.luowowo.comment.dao;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * monogDB 攻略评论接口
 */
@Repository
public interface IStrategyCommentDAO extends MongoRepository<StrategyComment,String> {

    /**
     * 通过destId 查询
     * @param detailId
     * @param pageable
     * @return
     */
    Page<StrategyComment> findByDetailId(Long detailId, Pageable pageable);
}
